﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - My ASP.NET Application</title>
    <script src="~/Scripts/jquery-2.1.0.min.js"></script>
    <script src="~/Xource/Xource.ashx"></script>
    @{
        string cssFile = "Site{0}.css";
        string rtl = string.Empty;
        if (Xource.Helper.XourceHandler.GetLanguage().TextInfo.IsRightToLeft)
        {
            rtl = ".rtl";
        }
        cssFile = string.Format(cssFile, rtl);
    }
    <link href="~/Content/@cssFile" type="text/css" rel="stylesheet" />
    <script type="text/javascript">
        $(function () {
            $('#client-text').html(localizedContent.ClientText);
        });
    </script>
</head>
<body>
    <div class="wrapper">
        <header>
            <img src="~/Images/Xource01.codeplex.fw.png" alt="Xource" />
        </header>
        <div class="container body-content">
            @RenderBody()
            <hr />
            <h4 id="client-text"></h4>
            <hr />
            <a href="@Url.Content("~/Account/Register")">@Xource.LocalizedContent.Register</a>
            <footer>
                <p>
                    @Html.Partial("_LanguageChanger")
                </p>
                <p>&copy; @DateTime.Now.Year - Xource Demo Application</p>
            </footer>
        </div>
    </div>
    @RenderSection("scripts", required: false)
</body>
</html>
